package org.jeecg.modules.dock.entity.mes.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.jeecg.modules.utils.DockContentUtil;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * MES-WMS发送叠片辅材叫料请求（200#、300#、400#、600#）
 *
 * @author zhoutong
 */
@ApiModel(value = "MES-WMS发送叠片辅材叫料请求（200#、300#、400#、600#）", description = "MES-WMS发送叠片辅材叫料请求（200#、300#、400#、600#）")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class LaminatedAuxiliaryMaterialOrderingRequestVO extends MesBaseRequestVO {

    @NotNull
    @NotBlank
    @ApiModelProperty("物料编码")
    private String materialCode;

    @NotBlank
    @NotNull
    @ApiModelProperty("生产订单号")
    private String orderCode;

    @NotBlank
    @NotNull
    @ApiModelProperty("客户代码")
    private String customCode;

    @NotNull
    @ApiModelProperty("台数")
    private BigDecimal tableQuantity;

    @ApiModelProperty("叫料范围（整台，上半台，下半台）")
    private String askRange;

    @ApiModelProperty("明细")
    private List<Object> detail;

    public void setMaterialCode(String materialCode) {
        this.materialCode = DockContentUtil.addZero(materialCode);
    }

}
